﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using iMapa.UI.ModelView.Main;
using System.Windows.Media.Animation;

namespace iMapa.UI.View.Simulation
{
    /// <summary>
    /// Interaction logic for SimulatedMapListItem.xaml
    /// </summary>
    public partial class SimulatedMapListItem : UserControl
    {
        public SimulatedMapListItem()
        {
            InitializeComponent();
        }

        private void reset_Click(object sender, RoutedEventArgs e)
        {
            MapViewModel mapMV = (MapViewModel)this.DataContext;
            mapMV.Imap.resetHomography();
        }

        private void onMouseEnter(object sender, MouseEventArgs e)
        {
            (Resources["onMouseAnim"] as Storyboard).Begin();
        }

        private void onMouseLeave(object sender, MouseEventArgs e)
        {
            (Resources["onMouseAnimBack"] as Storyboard).Begin();
        }
    }
}
